#include "visbsc.h"

#ifdef TEST_DBG_WIN32

void global_init_allocator(void);
void global_destroy_allocator(void);
void global_init_viewops(void);
void global_destroy_viewops(void);
void global_init_region(void);
void global_destroy_region(void);
void global_init_view_action(void);
void global_destroy_view_action(void);

BOOL APIENTRY DllMain( HMODULE hModule,
                       DWORD  ul_reason_for_call,
                       LPVOID lpReserved
					 )
{
	switch (ul_reason_for_call)
	{
	case DLL_PROCESS_ATTACH:
		global_init_allocator();
		global_init_viewops();
		global_init_region();
		global_init_view_action();
		break;

	case DLL_THREAD_ATTACH:
	case DLL_THREAD_DETACH:
		break;

	case DLL_PROCESS_DETACH:
		global_destroy_region();
		global_destroy_viewops();
		global_destroy_allocator();
		global_destroy_view_action();
		break;
	}
	return TRUE;
}

#endif
/* EOF */
